package com.emmmya.ocs.common.entity;

import com.emmmya.ocs.common.exception.ErrorReturnPageException;
import lombok.Data;

/**
 * @description:
 * @author: 咕噜肉IT小店-黑医
 * @createDate: 2020-06-04
 * @version: 1.0
 */
@Data
public class CustomError {

    private Integer code;

    private String errorMessage;

    private String handlerMessage;

    private String other;

    public CustomError(ErrorReturnPageException e) {
        this.code = e.getCode();
        this.errorMessage = e.getMessage();
    }
}
